←Select platform

StitchCommand Constructor(List<RasterImage>,StitchSideMatchingType,StitchMethodType,StitchImageType,double,LeadRect)

Summary

Initializes a new instance of StitchCommand with given properties.

Syntax
C#
C++/CLI
Python

Parameters

toStitchImages

List of RasterImages to stitch together.

sideMatchingType

The side of each image to stitch.

methodType

The method of stitching.

imageType

The flag specifying the image type.

minimumOverlap

The minimum overlap threshold for each image to stitch.

stitchArea

The area for each RasterImage to stitch.

Remarks

To perform stitching using the default settings, pass null to the parameters other than toStitchImages.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void StitchCommandExample(IList<RasterImage> Images) 
{ 
   // The image to stitch the other images to 
   var firstImage = Images.First(); 
   try 
   { 
      // List of images to stitch to firstImage 
      var toStitchImages = Images.Skip(1).ToList(); 
      try 
      { 
         // Create new Stitch Command and run on the provided images with the given parameters 
         // If successful, the firstImage will be updated to include the fully stitched image 
         new StitchCommand 
         { 
            ImageType = StitchImageType.VerticalScroll, 
            ToStitchImages = toStitchImages, 
            MethodType = StitchMethodType.Exhaustive, 
            SideMatchingType = StitchSideMatchingType.AllSides 
         }.Run(firstImage); 
      } 
      catch (Exception e) 
      { 
         Console.WriteLine(e); 
      } 
   } 
   catch (Exception e) 
   { 
      Console.WriteLine(e); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Effects Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.